import upload from '@/utils/upload'
import request from '@/utils/request'





// 获取焦点图
export function getFocusById(id) {
	const routeUrl = '/system/focus/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取最新焦点图
export function getFocusNew() {
	const routeUrl = '/system/focus/new' 
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取焦点图的上条信息
export function getFocusPreById(id) {
	const routeUrl = '/system/focus/prev/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 获取焦点图的下条信息
export function getFocusNextById(id) {
	const routeUrl = '/system/focus/next/' + id
	return request({
		url: routeUrl,
		method: 'get',
		//params: { tvId: tvId }
	})
}

// 查询科普列表
export function listFocus(query) {
	return request({
		url: '/system/focus/list',
		method: 'get',
		params: query
	})
}


// 查询科普列表
export function getFocusList(query) {
	return request({
		url: '/system/focus/list',
		method: 'get',
		params: query
	})
}




